package thirt.component
{
	import flash.filters.GlowFilter;
	
	import mx.containers.Canvas;

	public class DColor extends Canvas
	{
		private var _select:Boolean;
		private var filt:GlowFilter;
		public function DColor()
		{
			super();
			this.width = 15;
			this.height = 15;
			filt =new GlowFilter(0x1c9cf6,1,5,5);
			this.setStyle("borderStyle","solid");
		}
		public function set select(value:Boolean):void{
			this._select = value;
			if(value){
				this.filters = [filt];
			}else{
				this.filters = null;
			}
		}
		public function get select():Boolean{
			return this._select;
		}
		
		public function clone():DColor{
			var dc:DColor = new DColor;
			dc.data = this.data;
			dc.setStyle("backgroundColor","#"+data);
			return dc;
		}
		
	}
}